var express = require('express')
var router = express.Router()

// get/json
router.get('/json', function (req, res) {
    res.send({ name: 'Mixj' })
})

// post/json
router.post('/json', function (req, res) {
    console.log(req.body);
    let { body } = req
    res.send(body)
})

module.exports = router
